package com.heyun.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.heyun.bean.HeyunCustomer;
import com.heyun.dao.CustomerDao;
import com.heyun.service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService {

	@Autowired
	private CustomerDao customerDao;
	@Override
	public List<HeyunCustomer> findCustomer() {
		System.out.println("~~~~~~~~~~~~~~~~~~");
		return customerDao.findCustomer();
		
				
	}
	@Override
	public int saveCustomer(HeyunCustomer cus){
		// TODO Auto-generated method stub
		return customerDao.saveCustomer(cus);
	}
	@Override
	public int updateCustomer(HeyunCustomer customer) {
		// TODO Auto-generated method stub
		return customerDao.updateCustomer(customer);
	}
	@Override
	public HeyunCustomer findCustomerMes(int id) {
		// TODO Auto-generated method stub
		return customerDao.findCustomerMes(id);
	}
	@Override
	public int distribution(HeyunCustomer customer) {
		// TODO Auto-generated method stub
		return customerDao.distribution(customer);
	}
	@Override
	public List<HeyunCustomer> selectList(HeyunCustomer customer) {
		// TODO Auto-generated method stub
		return customerDao.selectList(customer);
	}
	@Override
	public int selectCount() {
		// TODO Auto-generated method stub
		return customerDao.selectCount();
	}

}
